﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [Table("sys_scheduler_report_cmddtl")]
    public class SchedulerReportCmdDtl
    {
        [Key, DataMember, DatabaseGenerated(DatabaseGeneratedOption.Identity), Column("sch_rep_cmddtl_seq")]
        public virtual int SchRepCmdDtlId { get; set; }

        [DataMember, ForeignKey("SchedulerReport"), Column("sch_rep_seq")]
        public virtual int? SchRepId { get; set; }

        [ForeignKey("PsCommand"), DataMember, Column("cmd_seq")]
        public virtual int? CmdId { get; set; }

        [ForeignKey("PsCommandDtl"), DataMember, Column("cmd_dtl_seq")]
        public virtual int? CmdDtlId { get; set; }

        [DataMember]
        public virtual HRM.PsCommand PsCommand { get; set; }

        [DataMember]
        public virtual HRM.PsCommandDtls PsCommandDtl { get; set; }

        [DataMember]
        public virtual SYS.SchedulerReport SchedulerReport { get; set; }
    }
}